from typing import List

from fastapi import Form
from pydantic import BaseModel

headers = {
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
    "Host": "xh.xhby.net",
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36'

}

headers1 = {
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
    "Host": "xhv5.xhby.net",
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36'

}

class UpdateHtml(BaseModel):
    cid: str
    keyid: str
    html: str
    down_date: str


class XinHuaRiBaoSave2(BaseModel):
    periodDate: str = ''
    html: str = ''
    url: str = ''
    years: str = ''
    moths: str = ''
    downdate: str = ''


class XinHuaRiBaoSave4(BaseModel):
    rawid: str = ''
    html: str = ''
    jsondicts: dict = dict()
    downdate: str = ''


class PaperXinHuaRiBaoSaveMonth(BaseModel):
    periodMonth: str = ''
    html: str = ''
    downdate: str = ''






class PaperXinHuaRiBaoDown(BaseModel):
    periodDate: str = ''
    url: str = ''
    marks: List[str] = []


class PaperXinHuaRiBaoGetDay(BaseModel):
    periodMonth: str = ''
    marks: List[str] = []



class XinHuaRiBaoParse4(BaseModel):
    downdate: str = ''
    jsondicts: dict = dict()
    html: str = ''
    rawid: str = ''
    batch: str = ''


class XinHuaRiBaoParseHtmlModel(BaseModel):
    periodDate: str = ''
    html: str = ''


class PaperXinHuaRiBaoParseDays(BaseModel):
    html: str = ''


class XinHuaRiBaoParse2(BaseModel):
    periodDate: str = ''
    html: str = ''


class XinHuaRiBaoParse3(BaseModel):
    periodDate: str = ''
    html: str = ''
    page: str = ''


class XinHuaRiBaoSave3(BaseModel):
    periodDate: str = ''
    html: str = ''
    url: str = ''
    years: str = ''
    moths: str = ''
    downdate: str = ''
    page: str = ''
    rawid_page: str = ''


class XinHuaRiBaoParseSave4(BaseModel):
    djson: dict = dict()
